/*
    @desc 操作本地存储
*/

export function getLocalStroage (name) {
  return localStorage.getItem(name)
}

export function setLocalStroage (name, value) {
  localStorage.setItem(name, value)
}

export function getSessionStorage (name) {
  return sessionStorage.getItem(name)
}

export function setSessionStorage (name, value) {
  sessionStorage.setItem(name, value)
}

export function clearLocalStroageByName (name) {
  localStorage.removeItem(name)
}

export function clearSessionStorageByName (name) {
  sessionStorage.removeItem(name)
}

export function clearAllLocalStroage () {
  localStorage.clear()
}

export function clearAllSessionStorage () {
  sessionStorage.clear()
}
